import 'dart:io';

import 'package:dbio_utils/generic_filehandle/local_file.dart';
import 'package:dbio_utils/tabix/csi.dart';
import 'package:flutter_test/flutter_test.dart';

void main() {
  test('csi test', () async {
    var file = LocalFile(File('/Users/leeo/Develop/github/dbio_utils/test/tabix/test.gff3.gz.csi'));
    final csi = CSI(fileHandle: file);
    var indexData = await csi.parse({});
    print(indexData);
    var blocks = await csi.blocksForRange(refName: '1', start: 0, end: 2000046092);
    print(blocks);
    var meta = await csi.getMetadata({});
    print(meta);
  });
}
